home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / std / c / 480 < prev    next >
Encoding:
Internet Message Format  |  1996-08-06  |  1.5 KB

  1. Path: news.iadfw.net!usenet
  2. From: Larry Weiss <lfw@iadfw.net>
  3. Newsgroups: comp.std.c
  4. Subject: Re: Possible bug in standard... I assume this is fixed?
  5. Date: Sat, 02 Mar 1996 10:26:55 -0600
  6. Organization: ...
  7. Message-ID: <313876CF.6D43@iadfw.net>
  8. References: <4h9rka$hfn@solutions.solon.com>
  9. NNTP-Posting-Host: dal12-05.ppp.iadfw.net
  10. Mime-Version: 1.0
  11. Content-Type: text/plain; charset=us-ascii
  12. Content-Transfer-Encoding: 7bit
  13. X-Mailer: Mozilla 2.0 (Win16; I)
  14.  
  15. Peter Seebach wrote:
  16.  > 
  17.  > 6.2.1 [6.1.2 ?] says that identifiers which differ in significant characters are
  18.  > distinct, and then says that if two identifiers differ in non-significant
  19.  > characters, the behavior is undefined.
  20.  > 
  21.  > So, on the gratuitously hostile 6-character monocase implementation, is
  22.  > this legal?
  23.  > 
  24.  >         int a12345z,
  25.  >             b12345y;
  26.  > 
  27.  > They clearly differ in insignificant characters.
  28.  > 
  29.  > I assume the former sentance protects them, but would like some certainty;
  30.  > a coworker has told me that another person on a project we're on is
  31.  > sure some IBM system won't *allow* names over 6 characters.
  32.  > 
  33.  
  34.  
  35. Here is the wording in Clause 6.1.2  (you had a slight typo in the Clause ref?):
  36.  
  37.   Any identifiers that differ in a significant character are different identifiers.
  38.   If two identifiers differ in a nonsignificant character, the behavior is undefined.
  39.  
  40. I see your point in needing to re-word that second sentence to somthing similar to:
  41.  
  42.   If two identifiers differ only in a nonsignificant character, the behavior is undefined.
  43.  
  44. I don't know if this has been fixed.
  45.